package cn.iocoder.yudao.module.erp.controller.admin.secstock.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 二级库库存新增/修改 Request VO")
@Data
public class SecStockSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8972")
    private Long id;

    @Schema(description = "部门id", example = "289")
    private String deptId;

    @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20531")
    private Long warehouseId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24552")
    @NotNull(message = "产品编号不能为空")
    private Long productId;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productName;

    @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productUnit;

    @Schema(description = "产品单位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productUnitName;
    /**
     * 产品单位编号
     */
    @Schema(description = "产品单位编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long productUnitId;
    /**
     * 产品分类编号
     */
    @Schema(description = "产品分类编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long productCategoryId;
    /**
     * 产品分类名称
     */
    @Schema(description = "产品分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productCategoryName;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productStandards;

    @Schema(description = "产品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "27223")
    private BigDecimal productPrice;

    @Schema(description = "产品批次", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productBatch;

    @Schema(description = "入库批次", requiredMode = Schema.RequiredMode.REQUIRED)
    private String inboundBatch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime productValidityDate;

    @Schema(description = "库存数量(新增库存数量)", requiredMode = Schema.RequiredMode.REQUIRED, example = "30957")
    @NotNull(message = "库存数量不能为空")
    private BigDecimal count;

}